import time
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
driver.get("https://sahitest.com/demo/cilck.htm")
# is_displayed()判断元素是否可见

ie = driver.find_element(By.XPATH, "//form[@id='form']/input[1]")

print(ie.get_attribute("outerHTML"))
print(ie.is_enabled())

kw = driver.find_element(By.ID, "kw")
print(kw.is_displayed())

driver.quit()